package com.example.cms.controller;

import com.example.cms.dao.FeedBackDao;
import com.example.cms.entity.FeedBack;
import com.example.cms.pojo.QueryPage;
import com.example.cms.service.FeedBackService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class FeedBackController {

    @Autowired
    private FeedBackService feedBackService;

    @RequestMapping("findFeedBack")
    public List<FeedBack> findFeedBack(Integer pageSize){
        return feedBackService.selectFeedBack(pageSize);
    }
}
